package org.example.adapter.objectadapter;

/**
 * @author wangbin
 * @date 2024/4/17
 * @vesion 1.0
 */
public class Phone {

    public void charging(IVolltag5V iVolltag5V){
        if(iVolltag5V.outPut5V()<=5){
            System.out.println("charging小于5V " );
        }else if(iVolltag5V.outPut5V()>5){
            System.out.println("charging  大于5V" );

        }
    }
}
